import Card from '@/views/home/card.vue'
import Cla from '@/views/home/cla.vue'
import Home from '@/views/home/home.vue'
import Index from '@/views/home/index.vue'
import My from '@/views/home/my.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      component: Home,
      children: [
        {
          path: 'card',
          component: Card,
        },
        {
          path: 'cla',
          component: Cla,
        },
        {
          path: 'index',
          component: Index,
        },
        {
          path: 'my',
          component: My,
        },
      ]
    },
  ],
})

export default router
